package com.itheima.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

@Data
@Table(name = "t_admin")
public class Admin {

    @Id
    @Column(name = "uid")
    private String uid;

    @Column(name = "user_name")
    private String userName;

    @Column(name = "pass_word")
    private String passWord;

    private String gender;

    private String avatar;
    private String email;
    private Date birthday;
    private String mobile;

    @Column(name = "valid_code")
    private String validCode;

    private String summary;


    @Column(name = "login_count")
    private Integer loginCount;

    @Column(name = "last_login_time")
    private Date lastLoginTime;

    @Column(name = "last_login_ip")
    private String lastLoginIp;

    private Integer status;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "nick_name")
    private String nickName;

    @Column(name = "qq_number")
    private String qqNumber;

    @Column(name = "we_chat")
    private String weChat;

    private String occupation;

    private String github;
    private String gitee;

    @Column(name = "role_uid")
    private String roleUid;

    @Column(name = "person_resume")
    private String personResume;

    //封装管理员角色
    private Role role;
    //封装用户图片数据
    private List<String>photoList;
}
